package com.yh.manage.course.client;

import com.lxw.framework.domain.cms.CmsPage;
import com.lxw.framework.domain.cms.response.CmsPageResult;
import com.lxw.framework.model.response.QueryResponseResult;
import com.lxw.framework.model.response.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @AUTHOR: yadong
 * @DATE: 2022/1/10 10:14
 * @DESC:
 */
@FeignClient(value = "yh-service-manage-cms")
public interface CmsPageClient {

    @GetMapping("cms/page/list/{page}/{size}")
    public QueryResponseResult findCmsPagesByPage(@PathVariable(value = "page") Integer page, @PathVariable(value = "size") Integer size);

    @PostMapping("/cms/page/save")
    public CmsPageResult saveCmsPage(@RequestBody CmsPage cmsPage);

    @PostMapping("/cms/page/postPageQuick")
    public ResponseResult postPageQuick(@RequestBody CmsPage cmsPage);
}
